#!/usr/bin/env bash

sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \
	-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.ustc.edu.cn/rocky|g' \
	-i.bak \
	/etc/yum.repos.d/rocky-extras.repo \
	/etc/yum.repos.d/rocky.repo
